package com.haha.dubbo.provider.service;

import com.haha.dubbo.consumer.api.service.DcCodeAPI;
import com.haha.dubbo.consumer.api.vo.DcCodeVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @AUTHOR zhangxf
 * @CREATE 2020-03-10 18:02
 */
@Slf4j
@Component
@Service(interfaceClass = DcCodeAPI.class, loadbalance = "dcCode")
public class DefaultDcCodeImpl implements DcCodeAPI {
    @Override
    public String test(DcCodeVO dcCodeVO) {
        log.info(dcCodeVO.getName());
        return "haha";
    }
}
